<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>转换日期格式</title>
</head>
<body>
    <!-- 日期选择 后端要求的格式一般都是字符串 2020-01-01 01:01:01 -->
    <div class="block">
        <span class="demonstration">默认</span>
        <el-date-picker
          v-model="value1"
          type="date"
          placeholder="选择日期">
        </el-date-picker>
      </div>
</body>
</html>